<button nz-button nzType="primary" (click)="initItem()" [nzLoading]="isLoadingInit">重置</button>
<div #scrollContainer class="scroll-container" (scroll)="onScroll($event)" [style.height]="containerHeight + 'px'" [style.overflow]="'auto'">
    @for (item of items; track item) {
      <div class="item">
        {{ item }}
      </div>
    }
    @if (loading) {
      <div class="spinner-border text-primary">
        <span class="sr-only">Loading...</span>
      </div>
    }
    @if (!loading &&!hasMore) {
      <button (click)="loadMore()" class="load-more-btn">我也是有底线的...</button>
    }
  </div>
  <nz-back-top [nzTarget]="scrollContainer"></nz-back-top>
